-- GENERATED SPELL FOR [Burning Blade Cultist] --


function spell0_3199(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3199', 17000, 1)
end

function spell1_3199(pUnit, Event) --@Summon Imp,Self--
pUnit:FullCastSpellOnTarget(11939,pUnit)
pUnit:RegisterEvent('Sorts_3199', 540, 1)
end

function Sorts_3199(pUnit, Event)
local choix_sorts_3199 = math.random(0, 1)
if choix_sorts_3199 == 0 then
pUnit:RegisterEvent('spell0_3199', 1, 1)
end
if choix_sorts_3199 == 1 then
pUnit:RegisterEvent('spell1_3199', 1, 1)
end
end

function mob3199_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3199', math.random(1500, 3000), 1)
end

function mob3199_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3199_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3199_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3199, 1, 'mob3199_Action')
RegisterUnitEvent(3199, 2, 'mob3199_Leave')
RegisterUnitEvent(3199, 3, 'mob3199_Kill')
RegisterUnitEvent(3199, 4, 'mob3199_Die')
